<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/28
 * Time: 10:57
 */

namespace app\index\controller;


use think\Request;

/***
 * // 更改默认的空控制器名
 * 'empty_controller'      => 'MyError',
 * @package app\index\controller
 */
class Error
{
    # 空操作
    public function _empty($name){
        echo __LINE__.$name;die;
    }
    # 空控制器
    public function index(Request $request){
        //根据当前控制器名来判断要执行那个城市的操作
        $cityName = $request->controller();
        echo __LINE__.$cityName;die;
    }
}